import { Get,Post,Put,Delete } from "../utils/axios";

// 查询角色信息
export const FindAllFile =  (params:object) => {
    let ret =  Get('file',params);
    return ret;
};
// 通过id查角色信息
export const GetFileId =  (params:any) => {
    let ret =  Get('file/'+params.id);
    return ret;
};
// 通过名字查角色信息
export const GetFileName =  (params:any) => {
    let ret =  Get('file/name/'+params.userFile);
    return ret;
};
// 添加角色信息
export const AddFile =  (params:object) => {
    let ret =  Post('file',params);
    return ret;
};
// 修改角色信息
export const UpdateFile =  (params:object) => {
    let ret =  Put('file',params);
    return ret;
};
// 删除角色信息
export const DeleteFile =  (params:any) => {
    let ret =  Delete('file/'+params.id);
    return ret;
};